package com.voltmao.persistent.model;

import java.util.ArrayList;
import java.util.List;

public class ProviderUserSbgsCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer pageSize;

    public ProviderUserSbgsCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart=limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDataIdIsNull() {
            addCriterion("data_id is null");
            return (Criteria) this;
        }

        public Criteria andDataIdIsNotNull() {
            addCriterion("data_id is not null");
            return (Criteria) this;
        }

        public Criteria andDataIdEqualTo(String value) {
            addCriterion("data_id =", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotEqualTo(String value) {
            addCriterion("data_id <>", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThan(String value) {
            addCriterion("data_id >", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThanOrEqualTo(String value) {
            addCriterion("data_id >=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThan(String value) {
            addCriterion("data_id <", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThanOrEqualTo(String value) {
            addCriterion("data_id <=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLike(String value) {
            addCriterion("data_id like", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotLike(String value) {
            addCriterion("data_id not like", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdIn(List<String> values) {
            addCriterion("data_id in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotIn(List<String> values) {
            addCriterion("data_id not in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdBetween(String value1, String value2) {
            addCriterion("data_id between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotBetween(String value1, String value2) {
            addCriterion("data_id not between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andForProviderUserIsNull() {
            addCriterion("for_provider_user is null");
            return (Criteria) this;
        }

        public Criteria andForProviderUserIsNotNull() {
            addCriterion("for_provider_user is not null");
            return (Criteria) this;
        }

        public Criteria andForProviderUserEqualTo(String value) {
            addCriterion("for_provider_user =", value, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserNotEqualTo(String value) {
            addCriterion("for_provider_user <>", value, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserGreaterThan(String value) {
            addCriterion("for_provider_user >", value, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserGreaterThanOrEqualTo(String value) {
            addCriterion("for_provider_user >=", value, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserLessThan(String value) {
            addCriterion("for_provider_user <", value, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserLessThanOrEqualTo(String value) {
            addCriterion("for_provider_user <=", value, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserLike(String value) {
            addCriterion("for_provider_user like", value, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserNotLike(String value) {
            addCriterion("for_provider_user not like", value, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserIn(List<String> values) {
            addCriterion("for_provider_user in", values, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserNotIn(List<String> values) {
            addCriterion("for_provider_user not in", values, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserBetween(String value1, String value2) {
            addCriterion("for_provider_user between", value1, value2, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andForProviderUserNotBetween(String value1, String value2) {
            addCriterion("for_provider_user not between", value1, value2, "forProviderUser");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlIsNull() {
            addCriterion("driver_licence_url is null");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlIsNotNull() {
            addCriterion("driver_licence_url is not null");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlEqualTo(String value) {
            addCriterion("driver_licence_url =", value, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlNotEqualTo(String value) {
            addCriterion("driver_licence_url <>", value, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlGreaterThan(String value) {
            addCriterion("driver_licence_url >", value, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlGreaterThanOrEqualTo(String value) {
            addCriterion("driver_licence_url >=", value, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlLessThan(String value) {
            addCriterion("driver_licence_url <", value, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlLessThanOrEqualTo(String value) {
            addCriterion("driver_licence_url <=", value, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlLike(String value) {
            addCriterion("driver_licence_url like", value, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlNotLike(String value) {
            addCriterion("driver_licence_url not like", value, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlIn(List<String> values) {
            addCriterion("driver_licence_url in", values, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlNotIn(List<String> values) {
            addCriterion("driver_licence_url not in", values, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlBetween(String value1, String value2) {
            addCriterion("driver_licence_url between", value1, value2, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andDriverLicenceUrlNotBetween(String value1, String value2) {
            addCriterion("driver_licence_url not between", value1, value2, "driverLicenceUrl");
            return (Criteria) this;
        }

        public Criteria andProductsDesIsNull() {
            addCriterion("products_des is null");
            return (Criteria) this;
        }

        public Criteria andProductsDesIsNotNull() {
            addCriterion("products_des is not null");
            return (Criteria) this;
        }

        public Criteria andProductsDesEqualTo(String value) {
            addCriterion("products_des =", value, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesNotEqualTo(String value) {
            addCriterion("products_des <>", value, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesGreaterThan(String value) {
            addCriterion("products_des >", value, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesGreaterThanOrEqualTo(String value) {
            addCriterion("products_des >=", value, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesLessThan(String value) {
            addCriterion("products_des <", value, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesLessThanOrEqualTo(String value) {
            addCriterion("products_des <=", value, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesLike(String value) {
            addCriterion("products_des like", value, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesNotLike(String value) {
            addCriterion("products_des not like", value, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesIn(List<String> values) {
            addCriterion("products_des in", values, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesNotIn(List<String> values) {
            addCriterion("products_des not in", values, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesBetween(String value1, String value2) {
            addCriterion("products_des between", value1, value2, "productsDes");
            return (Criteria) this;
        }

        public Criteria andProductsDesNotBetween(String value1, String value2) {
            addCriterion("products_des not between", value1, value2, "productsDes");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}